package com.service.impl;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.bean.wd_order;
import com.dao.wd_orderMapper;
import com.service.OrderService;
@Service
public class OrderServiceImpl implements OrderService{
	
	@Autowired
	@Qualifier("wd_orderMapper")
	private wd_orderMapper dao;
	
	public List<wd_order> selectAll(){
		List<wd_order>  list = dao.selectAll();
		return list;
	}
	public wd_order selectById(String id){
		return dao.selectByPrimaryKey(id);
	}
	public void insert(wd_order order){
		dao.insert(order);
	}
	
	public void delete(String id){
		dao.deleteByPrimaryKey(id);
	}
	
	public void update(wd_order order){
		dao.updateByPrimaryKey(order);
	}
	
}
